<script setup lang="ts">
import { inject } from 'vue'
const { path } = defineProps({ path: { type: String, required: true } })
const templates: any = inject('templates')
</script>

<template>
  <div>
    <ClientOnly>
      <component :is="templates[path]" v-bind="$attrs" />
    </ClientOnly>
  </div>
</template>
